package com.kancy.learn.rpc.rmi.api.entity;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @author kancy
 * @version 1.0
 * @date 2019/1/31 10:43
 */
public class Message implements Serializable {
    private static final long serialVersionUID = 1L;
    private long id;
    private byte[] body;
    private String context;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", body=" + Arrays.toString(body) +
                ", context='" + context + '\'' +
                '}';
    }
}

